<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>静态操作</title>
    <style>
        *{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .page {
            width: 500px;
            height: 40px;
        }
        .page button{
            float: left;
            margin-left: 5px;
            width: 80px;
            height: 40px;
        }
        .page .content{
            float: left;
        }

        .page .content .item{
            float: left;
            width: 40px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            margin-left: 5px;
            background-color: black;
            color: burlywood;
        }
        .page .content .active{
            color: red;
        }

    </style>
</head>
<body>
    <div class="page" id="page">
        <button>上一页</button>

        <div class="content">
            <div class="item active">1</div>
            <div class="item">2</div>
            <div class="item">3</div>
            <div class="item">4</div>
            <div class="item">5</div>
        </div>

        <button>下一页</button>
    </div>
</body>
</html>